package oop2;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class QQTest {
    public static void main(String[] args) {
        QQ q = new QQ();
        q.no = "19328954";
        q.nickname = "老刘";
        Scanner in = new Scanner(System.in);
        int ch = 0;
        while (true) {
            System.out.println("1:在线300天 2:查看 9：退出");
            ch = in.nextInt();
            if (ch == 1) {
                for (int i = 1; i <= 300; i++)
                    q.onlineDay();
            }else if(ch==2){
                q.show();
            }
        }
    }
}
